////////////////////////////////////////////////////////
//  constructor of SubTitleBar
SubTitleBar = function () {
    this.videoCenter = null;
};

//  methods of SubTitleBar
SubTitleBar.prototype = {
    init: function (id) {
        this.bar = document.getElementById(id);
    },
    onItemClick: function (time) {
        this.videoCenter.onSeekEvent(time);
    },
    onSubTitleUpdate: function (subTitle) {
        this.bar.innerHTML = subTitle;
    },
    registerVideoCenter: function (videoCenter) {
        this.videoCenter = videoCenter;
    }
};